<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class FddRecord
 * 
 * @property int $id
 * @property int|null $order_id
 * @property int|null $user_type
 * @property string|null $transaction_id
 * @property int|null $status
 * @property Carbon|null $create_time
 * @property Carbon|null $update_time
 * 
 * @property Order|null $order
 *
 * @package App\Models
 */
class FddRecord extends Model
{
	protected $table = 'fdd_records';

	protected $casts = [
		'order_id' => 'int',
		'user_type' => 'int',
		'status' => 'int'
	];

	protected $fillable = [
		'order_id',
		'user_type',
		'transaction_id',
		'status'
	];

	public function order()
	{
		return $this->belongsTo(Order::class);
	}
}
